// 员工的路由规则

import Layout from '@/layout'

export default {
  path: '/employees',
  name: 'employees', // 用于做权限
  component: Layout,
  children: [
    {
      path: '',
      component: () => import('@/views/employees'),
      meta: { title: '员工', icon: 'people' } // 路由元信息 title：用于左侧导航标题
    },
    {
      path: 'detail/:id?', // ? 代表可传可不传
      name: 'detail',
      hidden: true,
      component: () => import('@/views/employees/detail'),
      meta: { title: '员工详情' }
    },
    {
      path: 'print/:id?',
      name: 'print',
      hidden: true,
      component: () => import('@/views/employees/print'),
      meta: { title: '员工打印' }
    }
  ]
}
